package pap.gui;

import pap.bodies.SimpleBody;

public class BodyShaper {

	private IShape shape;

	/**
	 * Given a SimpleBody returns an object of type IShape that represent the
	 * selected shape for the body
	 * 
	 * @param body
	 * @return shape
	 */
	public IShape getBodyShape(SimpleBody body) {
		shape = new BodyCircle(body.getMassCenter(), body.getRadius());
		return shape;
	}
}